import Login from './views/Login.vue'
import RegisterForTenant from './views/register/RegisterForTenant.vue'
import RegisterForEmployee from './views/register/registerForEmployee.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import Department from './views/department/Department.vue'
import Role from './views/role/Role.vue'
import Employee from './views/employee/Employee.vue'
import SystemLog from './views/systemLog/SystemLog.vue'
import DepositOrder from './views/deposit_order/DepositOrder.vue'
import Contract from './views/contract/Contract.vue'
import Customer from './views/customer/Customer.vue'
import CustomerTraceHistory from './views/customer_trace_history/CustomerTraceHistory.vue'
import CustomerTransfer from './views/customer_transfer/CustomerTransfer.vue'
import CustomerResourcePool from './views/customer_resource_pool/CustomerResourcePool.vue'
import Bind from './views/register/Bind.vue'
import Warranty from './views/warranty/Warranty.vue'
import PotentialCustomer from './views/potential_customer/PotentialCustomer.vue'
import CustomerDevPlan from './views/customer_devplan/CustomerDevPlan.vue'


let routes = [
    {
        path: '/registerForTenant',
        component: RegisterForTenant,
        name: '',
        hidden: true
    },
    {
        path: '/registerForEmployee',
        component: RegisterForEmployee,
        name: '',
        hidden: true
    },
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/bind',
        component: Bind,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '营销管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/potentialCustomer', component: PotentialCustomer, name: '潜在客户管理' },
            { path: '/customerDevPlan', component: CustomerDevPlan, name: '潜在客户开发计划' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '客户管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/customer', component: Customer, name: '客户信息' },
            { path: '/customerTraceHistory', component: CustomerTraceHistory, name: '客户跟进历史' },
            { path: '/customerTransfer', component: CustomerTransfer, name: '客户移交信息' },
            { path: '/customerResourcePool', component: CustomerResourcePool, name: '客户资源池' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/department', component: Department, name: '部门管理' },
            { path: '/role', component: Role, name: '角色管理' },
            { path: '/employee', component: Employee, name: '员工管理' },
            { path: '/systemLog', component: SystemLog, name: '日志管理' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '订单合同管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/depositOrder', component: DepositOrder, name: '订单管理' },
            { path: '/contract', component: Contract, name: '合同管理' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '售后管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/warranty', component: Warranty, name: '维修单管理' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '',
        iconCls: 'fa fa-address-card',
        leaf: true,//只有一个节点
        children: [
            { path: '/page6', component: Page6, name: '导航三' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;